package com.sg.dto.biz.pbff.common;

import com.sg.common.dto.PagedDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;


/**
 * @desc BffFrameworkSpaceDto
 * @使用场景
 */
@Data
public class BffFrameworkSpaceDto extends PagedDto implements Serializable {

    /**
     * 空间ID
     */
    @ApiModelProperty("空间ID")
    private String spaceId;

    /**
     * 空间名称
     */
    @ApiModelProperty("空间名称")
    private String spaceName;

    /**
     * 空间编号
     */
    @ApiModelProperty("空间编号")
    private String organizationNumber;

    /**
     * 头像logo
     */
    @ApiModelProperty("头像logo")
    private String spaceLogo;

    /**
     * 是否是平台 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否是平台")
    private String platformType;

    /**
     * 是否失效 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否失效")
    private String isInvalid;

    /**
     * 创建人就职记录ID
     */
    @ApiModelProperty("创建人就职记录ID")
    private String createInductionId;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    private Date createTime;

    /**
     * 个人账号ID
     */
    @ApiModelProperty("个人账号ID")
    private String userId;

    /**
     * 真实姓名
     */
    @ApiModelProperty("真实姓名")
    private String idCardName;

    /**
     * 用户昵称
     */
    @ApiModelProperty("用户昵称")
    private String nickName;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffFrameworkSpaceDto that = (BffFrameworkSpaceDto) o;
        return spaceId == that.spaceId && spaceName == that.spaceName && organizationNumber == that.organizationNumber && spaceLogo == that.spaceLogo && platformType == that.platformType && isInvalid == that.isInvalid && createInductionId == that.createInductionId && createTime == that.createTime && userId == that.userId && idCardName == that.idCardName && nickName == that.nickName;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), spaceId, spaceName, organizationNumber, spaceLogo, platformType, isInvalid, createInductionId, createTime, userId, idCardName, nickName);
    }


}
   